package com.learn.springboot.controller.temp;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangxing
 * @version 2020/8/3 10:13 Administrator
 */
@RestController
@RequestMapping("/hello")
public class HelloController {
    @GetMapping("/{id}")
    public String index(@PathVariable("id") Integer id){
        return "hello "+ id;
    }
    @GetMapping("/hello")
    public String hello(){
        return "hello";
    }
    @GetMapping("/123")
    public String hello123(){
        return "hello--123";
    }
}
